<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
        "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<script type="text/javascript">
	var djConfig = {isDebug: true, debugAtAllCosts: true };
</script>
<script type="text/javascript" src="../../../dojo.js"></script>
<script type="text/javascript">
	dojo.require("dojo.lang.*");
	dojo.require("dojo.widget.*");
	dojo.require("dojo.widget.Tree");
	dojo.hostenv.writeIncludes();
</script>


</head>
<body>


<h3>Typed Drag'n'drop. Some nodes from firstTree have disabled actions.</h3>

<h4>firstTree. Between DND mode. Accepts firstTree only.</h4>

<div dojoType="Tree" DNDMode="between" toggle="fade" DNDAcceptTypes="firstTree" widgetId="firstTree">
    <div dojoType="TreeNode" title="Item 1">
        <div dojoType="TreeNode" title="Item 1.1"><br/></div>
        <div dojoType="TreeNode" title="Item 1.2">
            <div dojoType="TreeNode" title="Item 1.2.1"></div>
            <div dojoType="TreeNode" title="Item 1.2.2"></div>
        </div>
        <div dojoType="TreeNode" title="Can't add child to this node" actionsDisabled="addChild">
            <div dojoType="TreeNode" isFolder="true" title="Empty folder"></div>
            <div dojoType="TreeNode" title="Item 1.3.2"></div>
        </div>
        <div dojoType="TreeNode" title="Item 1.4">
            <div dojoType="TreeNode" title="Item 1.4.1"></div>
        </div>
	<div dojoType="TreeNode" actionsDisabled="move" title="Can't move this node"></div>
    </div>
</div>


<h4>secondTree. Onto DND mode. Accepts firstTree and secondTree.</h4>

<div dojoType="Tree" DNDMode="onto" toggle="wipe" DNDAcceptTypes="firstTree;secondTree" widgetId="secondTree">
    <div dojoType="TreeNode" title="Node 1"></div>
    <div dojoType="TreeNode" title="Node 2">
        <div dojoType="TreeNode" isFolder="true" title="Node 2.1"></div>
        <div dojoType="TreeNode" title="Node 2.2"></div>
    </div>

</div>



</body>
</html>
